/* @(#)GSBalanceManagePayAction.java   
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li    2006-4-24     新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.HashMap;

import com.hitrust.gs.business.GSBalanceProcessor;
import com.hitrust.gs.form.GSBalanceManagePayReceiveForm;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.vo.GSBalanceManagePayReceiveVO;

public class GSBalanceManagePayAction extends GSBaseAction {

	public String execute(GSBaseForm aForm) throws Exception {

        GSBalanceManagePayReceiveForm tForm = (GSBalanceManagePayReceiveForm)aForm;
        GSBalanceManagePayReceiveVO tVO = new GSBalanceManagePayReceiveVO();
        tVO.balanceYM = tForm.getRequest().getParameter("balanceYM");
        tVO.deptId = tForm.getRequest().getParameter("deptId");
        tVO.deptCategory = tForm.getRequest().getParameter("deptCategory");
        tVO.balanceSum = Double.parseDouble(tForm.getRequest().getParameter("balanceSum"));
        GSBalanceProcessor tBalProc = new GSBalanceProcessor();
        //生成应付信息
        HashMap tMap = tBalProc.productPayInfo(tVO);
        tForm.getRequest().setAttribute("map",tMap);
		return GSBaseConstants.FORWARD_SUCCESS;
	}

}
